import Vue from 'vue'
import Router from 'vue-router'
import Enter from '@/components/enter'
// import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
   routes: [
   {
      path: '/',
      redirect: { name: 'Hello' }  // 使用命名路由重定向
    },
    {
      path: '/hello',
      name: 'Hello',
      component: Enter
    }
  ]
})
